﻿using AutoMapper;
using Portal.Model;

namespace Portal.Repository.Bootstraper
{
	public class RepositoryAutoMapper : Profile
	{
		protected override void Configure()
		{
			CreateMap<IUser, User>()
				.ForMember(x => x.Id, opt => opt.Ignore());

			CreateMap<IContactInfo, ContactInfo>()
				.ForMember(x => x.Id, opt => opt.Ignore());
		}
	}
}